package cn.bonoon.controllers.comment;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;
import cn.bonoon.kernel.web.annotations.grid.OperationType;

@AsDataGrid(condition = CommentCondition.class, value = @GridOptions(operation = OperationType.NONE))
public class CommentItem extends AbstractItem implements CommentDefine{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4347865775708367482L;
	@AsColumn(width = 100, ordinal = 0)
	private String creatorName;
	
	@AsColumn(width = 380, ordinal = 10)
	@Cutoff(60)
	private String content;
	
	@AsColumn(width = 50, ordinal = 20)
	private int score;
	
	@AsColumn(width = 60, ordinal = 30)
	private String status;
	
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getScore() {
		return score;
	}
	public void setScore(int score) {
		this.score = score;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
}
